<% if content_for?(:page_title) || content_for?(:page_actions) %>
  <div class="content-header <%= "with-page-tabs" if content_for?(:page_tabs) %> page-header">
    <div class="row">
      <% if content_for?(:page_title) %>
        <h1 class="col-sm-<%= content_for?(:page_actions) ? '6' : '12'  %>">
          <%= yield :page_title %>
          <% if content_for?(:page_title_small) %>
            <small><%= yield :page_title_small %></small>
          <% end %>
        </h1>
      <% end %>

      <% if content_for?(:page_actions) %>
        <div class="page-actions col-sm-6" data-hook="toolbar">
          <%= yield :page_actions %>
        </div>
      <% end %>

      <% if content_for?(:page_tabs) %>
        <ul class="nav nav-tabs">
          <%= yield :page_tabs %>
        </ul>
      <% end %>
    </div>
  </div>
<% end %>
